package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestLogging {

    @RequestMapping("/logging")
    public void sayHi(){
        log.trace("hi trace~~~");
        log.debug("hi debug~~~");
        log.info ("hi info ~~~");
        log.warn ("hi warn ~~~");
        log.error("hi error~~~");
    }
}